Restart Docker

To restart Docker services on your Windows 11 machine, you have a few options depending on whether you’re using Docker Desktop or the Docker Engine (via WSL2/Linux):


🖥️ If you’re using Docker Desktop (Windows GUI)

  1. Restart from the tray icon:
    • Right‑click the Docker whale icon in the system tray.
    • Select Restart Docker Desktop.
  2. Restart via Settings:
    • Open Docker Desktop.
    • Go to Settings → Troubleshoot.
    • Click Restart Docker Desktop.

🐧 If you’re using Docker Engine inside WSL2 (Ubuntu/other distro)

Open your WSL terminal (Ubuntu, Debian, etc.) and run:

sudo service docker restart

or, if systemd is enabled:

sudo systemctl restart docker

⚡ If Docker is stuck

You can restart the Docker Desktop Service directly from Windows:

  1. Open PowerShell as Administrator.
  2. Run:
    net stop com.docker.service
    net start com.docker.service
    
    This forces the Windows service that powers Docker Desktop to restart.

👉 Since you’re already working with WSL and Ubuntu, the most direct way is:

sudo service docker restart

inside your Ubuntu WSL terminal.

Also See

File5FileLast Modified
在WSL 中安裝 Ubuntu在WSL 中安裝 Ubuntu2:25 PM - January 12, 2026
Windows 上透過 WSL 進入 Ubuntu shellWindows 上透過 WSL 進入 Ubuntu shell2:25 PM - January 12, 2026
Force restart WSLForce restart WSL2:25 PM - January 12, 2026
set WSL’s default distributionset WSL’s default distribution3:14 PM - December 15, 2025
install Ubuntu on WSLinstall Ubuntu on WSL2:34 PM - December 15, 2025